//
//  LGECGDetailEmptyController.m
//  HeartDiseaseManage
//
//  Created by 1234 on 2024/8/21.
//

#import "LGECGDetailEmptyController.h"

@interface LGECGDetailEmptyController ()

@end

@implementation LGECGDetailEmptyController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.gradientLayer.hidden = YES;
    self.fd_prefersNavigationBarHidden = YES;
    self.view.backgroundColor = [UIColor whiteColor];
    [self navigationViewWithType:LGNavigationTypeDark title:@"综合健康检测报告"];
    UILabel *titleLabel = [UILabel lableWithText:@"患者的报告存在扰动\n请尝试如下姿势重新测量" colorString:@"#FF9500" textFont:LGFontWeight(16, UIFontWeightMedium) textAlignment:NSTextAlignmentCenter lines:2];
    titleLabel.frame = CGRectMake(0, topBarHeight+viewPix(30), Screen_W, viewPix(60));
    [titleLabel lineSpacing:8];
    [self.view addSubview:titleLabel];
    
    if ([self.source isEqualToString:@"KPQ"]) {
        //卡帕奇单导
        UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"心律-空白页"]];
        imageView.frame = CGRectMake((Screen_W-375)/2.0, topBarHeight+viewPix(120), 375, 409);
        [self.view addSubview:imageView];
        
    }else{
        //卡帕奇六导
        titleLabel.textColor = [UIColor colorWithString:@"#5E8EF5"];
        UILabel *descLabel = [UILabel lableWithText:@"双手手指轻按正面电极片\n背面电极片接触膝盖或脚踝\n等待指示灯亮起" colorString:@"#282828" textFont:LGFont(16) textAlignment:NSTextAlignmentCenter lines:3];
        descLabel.frame = CGRectMake(0, kMaxY(titleLabel.frame)+viewPix(2), Screen_W, viewPix(90));
        [descLabel lineSpacing:8];
        [self.view addSubview:descLabel];
        
        UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"心律-空白页2"]];
        imageView.frame = CGRectMake((Screen_W-254)/2.0, kMaxY(descLabel.frame)+viewPix(10), 254, 321);
        [self.view addSubview:imageView];
    }
    
    
}

-(void)backButtonAction{
    [self.navigationController popViewControllerAnimated:YES];
}

@end
